<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN'
'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html><head>
<title>Protocol</title>
</head>
<body style="background-color:#FFFFFF;color:#000000"><a NAME="top" ID="top"></a>
<h1 style="background-color:#FFFFFF;color:#0000FF">Protocol</h1>

<h3 style="background-color:#FFFFFF;color:#FF0000">Global Attributes</h3>
<table>
<tr><td>protocolHandler</td></tr><tr><td>textWrapper</td></tr>
</table>
<h3 style="background-color:#FFFFFF;color:#FF0000">Classes</h3>
<table>
<tr>
<td><a style="color:#0000FF" href="#ProtocolHandler">ProtocolHandler</a></td>
<td>Handles colorizations as well as telnet codes.</td>
</tr>
</table>
<h3 style="background-color:#FFFFFF;color:#FF0000">Functions</h3>
<table>
<tr>
<td><a style="color:#0000FF" href="#wrap_text">wrap_text</a></td>
<td></td>
</tr>
</table>
<hr /><hr />
<a NAME="ProtocolHandler" ID="ProtocolHandler"></a>
<h2 style="background-color:#FFFFFF;color:#0000FF">ProtocolHandler</h2>
<p>
    Handles colorizations as well as telnet codes.
</p>
<h3 style="background-color:#FFFFFF;color:#FF0000">Derived from</h3>
None
<h3 style="background-color:#FFFFFF;color:#FF0000">Class Attributes</h3>
<table>
<tr><td>None</td></tr>
</table>
<h3 style="background-color:#FFFFFF;color:#FF0000">Methods</h3>
<table>
<tr>
<td><a style="color:#0000FF" href="#ProtocolHandler.__init__">ProtocolHandler</a></td>
<td></td>
</tr><tr>
<td><a style="color:#0000FF" href="#ProtocolHandler.cursor_position">cursor_position</a></td>
<td>Returns the code to force the telnet cursor to row x column y.</td>
</tr><tr>
<td><a style="color:#0000FF" href="#ProtocolHandler.process_no_color">process_no_color</a></td>
<td>Strips out control codes and doesn't replace them.</td>
</tr><tr>
<td><a style="color:#0000FF" href="#ProtocolHandler.process_text">process_text</a></td>
<td>Strips out color and control tags and replaces them with VT100 codes.</td>
</tr>
</table>
<a NAME="ProtocolHandler.__init__" ID="ProtocolHandler.__init__"></a>
<h3 style="background-color:#FFFFFF;color:#FF0000">ProtocolHandler (Constructor)</h3>
<b>ProtocolHandler</b>(<i></i>)
<a NAME="ProtocolHandler.cursor_position" ID="ProtocolHandler.cursor_position"></a>
<h3 style="background-color:#FFFFFF;color:#FF0000">ProtocolHandler.cursor_position</h3>
<b>cursor_position</b>(<i>x, y</i>)
<p>
        Returns the code to force the telnet cursor to row x column y.
</p><a NAME="ProtocolHandler.process_no_color" ID="ProtocolHandler.process_no_color"></a>
<h3 style="background-color:#FFFFFF;color:#FF0000">ProtocolHandler.process_no_color</h3>
<b>process_no_color</b>(<i>data</i>)
<p>
        Strips out control codes and doesn't replace them. For people who
        don't want color.
</p><a NAME="ProtocolHandler.process_text" ID="ProtocolHandler.process_text"></a>
<h3 style="background-color:#FFFFFF;color:#FF0000">ProtocolHandler.process_text</h3>
<b>process_text</b>(<i>data</i>)
<p>
        Strips out color and control tags and replaces them with VT100 codes.
</p>
<div align="right"><a style="color:#0000FF" href="#top">Up</a></div>
<hr /><hr />
<a NAME="wrap_text" ID="wrap_text"></a>
<h2 style="background-color:#FFFFFF;color:#0000FF">wrap_text</h2>
<b>wrap_text</b>(<i>data</i>)

<div align="right"><a style="color:#0000FF" href="#top">Up</a></div>
<hr />
</body></html>